package com.kaili.basic.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.kaili.basic.pojo.entity.BaseBarcodeRule;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 用户mapper
 * @Copyright: Copyright (c) 2017
 * @Company: 杭州凯立通信有限公司
 * @author zhengs
 * @version 1.0.0 2018年3月27日 下午1:33:00
 */
@Mapper
public interface BaseBarcodeRuleMapper {

    BaseBarcodeRule loadBarcodeRuleByUsernameExit(BaseBarcodeRule baseBarcodeRule);


    BaseBarcodeRule getBaseBarcodeRuleById(Long id);

    BaseBarcodeRule getBaseBarcodeRuleByParentId(Long id);

    List<BaseBarcodeRule> queryPagedList(Page<BaseBarcodeRule> page, BaseBarcodeRule baseBarcodeRule);


    int addNewBaseBarcodeRule(BaseBarcodeRule baseBarcodeRule);

    int updateById(BaseBarcodeRule baseBarcodeRule);

    int deleteBatchIds(List<Long> ids);

    int getBaseBarcodeRuleByRule(String rule);

    int selectCount ();


    //判断 流水号规则是否存在

    int ExitSerialNum(Long serialNum);

}
